extends ../layout

block css_head
    link(href="/css/home.css",rel="stylesheet")

block content
    .row
        each item in movies
            .col-sm-6.col-md-4
                .thumbnail
                    img(src="#{item.poster}",title="#{item.title}")
                    .caption
                        h3 #{item.title}
                        p ...
                        p
                            a(href="/movies/#{item._id}",class="btn btn-primary") Button1 
                            a(href="/movies/#{item._id}",class="btn btn-default") Button2

block script_foot
    script(src="/js/home.js")
